package ezXpns.analysis.transforms;

import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.Pair;

import ezXpns.BudgetChange;
import ezXpns.analysis.Transform;


//@author A0088827L
public class TypeExtractor implements Transform<BudgetChange, Pair<String,Float>>{	

	public Pair<String, Float> apply(BudgetChange change){
	
		return new ImmutablePair<String,Float>(change.getType(),change.getAmount());
	}	
}
